Optimal. Leaf size=192 \[ -\frac {b c}{15 x^{5/2}}-\frac {5 b c^3}{18 x^{3/2}}-\frac {11 b c^5}{6 \sqrt {x}}+\frac {11}{6} b c^6 \tanh ^{-1}\left (c \sqrt {x}\right )-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{3 x^3}-\frac {c^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{2 x^2}-\frac {c^4 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{x}+\frac {c^6 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )^2}{b}+2 c^6 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right ) \log \left (2-\frac {2}{1+c \sqrt {x}}\right )-b c^6 \text {PolyLog}\left (2,-1+\frac {2}{1+c \sqrt {x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.40, antiderivative size = 192, normalized size of antiderivative = 1.00, number of steps
used = 20, number of rules used = 9, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.346, Rules used = {46, 1607,
6129, 6037, 331, 212, 6135, 6079, 2497} \begin {gather*} \frac {c^6 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )^2}{b}+2 c^6 \log \left (2-\frac {2}{c \sqrt {x}+1}\right ) \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )-\frac {c^4 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{x}-\frac {c^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{2 x^2}-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{3 x^3}-b c^6 \text {Li}_2\left (\frac {2}{\sqrt {x} c+1}-1\right )+\frac {11}{6} b c^6 \tanh ^{-1}\left (c \sqrt {x}\right )-\frac {11 b c^5}{6 \sqrt {x}}-\frac {5 b c^3}{18 x^{3/2}}-\frac {b c}{15 x^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 212
Rule 331
Rule 1607
Rule 2497
Rule 6037
Rule 6079
Rule 6129
Rule 6135
Rubi steps
\begin {align*} \int \frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{x^4 \left (1-c^2 x\right )} \, dx &=2 \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x^7-c^2 x^9} \, dx,x,\sqrt {x}\right )\\ &=2 \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x^7 \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )\\ &=2 \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x^7} \, dx,x,\sqrt {x}\right )+\left (2 c^2\right ) \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x^5 \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )\\ &=-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{3 x^3}+\frac {1}{3} (b c) \text {Subst}\left (\int \frac {1}{x^6 \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )+\left (2 c^2\right ) \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x^5} \, dx,x,\sqrt {x}\right )+\left (2 c^4\right ) \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x^3 \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )\\ &=-\frac {b c}{15 x^{5/2}}-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{3 x^3}-\frac {c^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{2 x^2}+\frac {1}{3} \left (b c^3\right ) \text {Subst}\left (\int \frac {1}{x^4 \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )+\frac {1}{2} \left (b c^3\right ) \text {Subst}\left (\int \frac {1}{x^4 \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )+\left (2 c^4\right ) \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x^3} \, dx,x,\sqrt {x}\right )+\left (2 c^6\right ) \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )\\ &=-\frac {b c}{15 x^{5/2}}-\frac {5 b c^3}{18 x^{3/2}}-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{3 x^3}-\frac {c^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{2 x^2}-\frac {c^4 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{x}+\frac {c^6 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )^2}{b}+\frac {1}{3} \left (b c^5\right ) \text {Subst}\left (\int \frac {1}{x^2 \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )+\frac {1}{2} \left (b c^5\right ) \text {Subst}\left (\int \frac {1}{x^2 \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )+\left (b c^5\right ) \text {Subst}\left (\int \frac {1}{x^2 \left (1-c^2 x^2\right )} \, dx,x,\sqrt {x}\right )+\left (2 c^6\right ) \text {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x (1+c x)} \, dx,x,\sqrt {x}\right )\\ &=-\frac {b c}{15 x^{5/2}}-\frac {5 b c^3}{18 x^{3/2}}-\frac {11 b c^5}{6 \sqrt {x}}-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{3 x^3}-\frac {c^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{2 x^2}-\frac {c^4 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{x}+\frac {c^6 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )^2}{b}+2 c^6 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right ) \log \left (2-\frac {2}{1+c \sqrt {x}}\right )+\frac {1}{3} \left (b c^7\right ) \text {Subst}\left (\int \frac {1}{1-c^2 x^2} \, dx,x,\sqrt {x}\right )+\frac {1}{2} \left (b c^7\right ) \text {Subst}\left (\int \frac {1}{1-c^2 x^2} \, dx,x,\sqrt {x}\right )+\left (b c^7\right ) \text {Subst}\left (\int \frac {1}{1-c^2 x^2} \, dx,x,\sqrt {x}\right )-\left (2 b c^7\right ) \text {Subst}\left (\int \frac {\log \left (2-\frac {2}{1+c x}\right )}{1-c^2 x^2} \, dx,x,\sqrt {x}\right )\\ &=-\frac {b c}{15 x^{5/2}}-\frac {5 b c^3}{18 x^{3/2}}-\frac {11 b c^5}{6 \sqrt {x}}+\frac {11}{6} b c^6 \tanh ^{-1}\left (c \sqrt {x}\right )-\frac {a+b \tanh ^{-1}\left (c \sqrt {x}\right )}{3 x^3}-\frac {c^2 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{2 x^2}-\frac {c^4 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )}{x}+\frac {c^6 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right )^2}{b}+2 c^6 \left (a+b \tanh ^{-1}\left (c \sqrt {x}\right )\right ) \log \left (2-\frac {2}{1+c \sqrt {x}}\right )-b c^6 \text {Li}_2\left (-1+\frac {2}{1+c \sqrt {x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.56, size = 187, normalized size = 0.97 \begin {gather*} -\frac {30 a+6 b c \sqrt {x}+45 a c^2 x+25 b c^3 x^{3/2}+90 a c^4 x^2+165 b c^5 x^{5/2}-90 b c^6 x^3 \tanh ^{-1}\left (c \sqrt {x}\right )^2-15 b \tanh ^{-1}\left (c \sqrt {x}\right ) \left (-2-3 c^2 x-6 c^4 x^2+11 c^6 x^3+12 c^6 x^3 \log \left (1-e^{-2 \tanh ^{-1}\left (c \sqrt {x}\right )}\right )\right )-90 a c^6 x^3 \log (x)+90 a c^6 x^3 \log \left (1-c^2 x\right )}{90 x^3}-b c^6 \text {PolyLog}\left (2,e^{-2 \tanh ^{-1}\left (c \sqrt {x}\right )}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(343\) vs.
\(2(161)=322\).
time = 0.28, size = 344, normalized size = 1.79
method | result | size |
derivativedivides | \(-2 c^{6} \left (\frac {a}{2 c^{2} x}+\frac {a}{4 c^{4} x^{2}}+\frac {a}{6 c^{6} x^{3}}-\frac {11 b \ln \left (1+c \sqrt {x}\right )}{24}+\frac {11 b}{12 c \sqrt {x}}-a \ln \left (c \sqrt {x}\right )-\frac {b \ln \left (c \sqrt {x}-1\right ) \ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {b \ln \left (-\frac {c \sqrt {x}}{2}+\frac {1}{2}\right ) \ln \left (1+c \sqrt {x}\right )}{4}-\frac {b \ln \left (-\frac {c \sqrt {x}}{2}+\frac {1}{2}\right ) \ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {b}{30 c^{5} x^{\frac {5}{2}}}+\frac {5 b}{36 c^{3} x^{\frac {3}{2}}}-b \arctanh \left (c \sqrt {x}\right ) \ln \left (c \sqrt {x}\right )+\frac {b \dilog \left (1+c \sqrt {x}\right )}{2}+\frac {b \dilog \left (c \sqrt {x}\right )}{2}-\frac {b \dilog \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{2}+\frac {a \ln \left (c \sqrt {x}-1\right )}{2}+\frac {a \ln \left (1+c \sqrt {x}\right )}{2}+\frac {b \ln \left (c \sqrt {x}-1\right )^{2}}{8}-\frac {b \ln \left (1+c \sqrt {x}\right )^{2}}{8}+\frac {11 b \ln \left (c \sqrt {x}-1\right )}{24}+\frac {b \arctanh \left (c \sqrt {x}\right )}{6 c^{6} x^{3}}+\frac {b \arctanh \left (c \sqrt {x}\right )}{4 c^{4} x^{2}}+\frac {b \arctanh \left (c \sqrt {x}\right )}{2 c^{2} x}+\frac {b \ln \left (c \sqrt {x}\right ) \ln \left (1+c \sqrt {x}\right )}{2}+\frac {b \arctanh \left (c \sqrt {x}\right ) \ln \left (c \sqrt {x}-1\right )}{2}+\frac {b \arctanh \left (c \sqrt {x}\right ) \ln \left (1+c \sqrt {x}\right )}{2}\right )\) | \(344\) |
default | \(-2 c^{6} \left (\frac {a}{2 c^{2} x}+\frac {a}{4 c^{4} x^{2}}+\frac {a}{6 c^{6} x^{3}}-\frac {11 b \ln \left (1+c \sqrt {x}\right )}{24}+\frac {11 b}{12 c \sqrt {x}}-a \ln \left (c \sqrt {x}\right )-\frac {b \ln \left (c \sqrt {x}-1\right ) \ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {b \ln \left (-\frac {c \sqrt {x}}{2}+\frac {1}{2}\right ) \ln \left (1+c \sqrt {x}\right )}{4}-\frac {b \ln \left (-\frac {c \sqrt {x}}{2}+\frac {1}{2}\right ) \ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {b}{30 c^{5} x^{\frac {5}{2}}}+\frac {5 b}{36 c^{3} x^{\frac {3}{2}}}-b \arctanh \left (c \sqrt {x}\right ) \ln \left (c \sqrt {x}\right )+\frac {b \dilog \left (1+c \sqrt {x}\right )}{2}+\frac {b \dilog \left (c \sqrt {x}\right )}{2}-\frac {b \dilog \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{2}+\frac {a \ln \left (c \sqrt {x}-1\right )}{2}+\frac {a \ln \left (1+c \sqrt {x}\right )}{2}+\frac {b \ln \left (c \sqrt {x}-1\right )^{2}}{8}-\frac {b \ln \left (1+c \sqrt {x}\right )^{2}}{8}+\frac {11 b \ln \left (c \sqrt {x}-1\right )}{24}+\frac {b \arctanh \left (c \sqrt {x}\right )}{6 c^{6} x^{3}}+\frac {b \arctanh \left (c \sqrt {x}\right )}{4 c^{4} x^{2}}+\frac {b \arctanh \left (c \sqrt {x}\right )}{2 c^{2} x}+\frac {b \ln \left (c \sqrt {x}\right ) \ln \left (1+c \sqrt {x}\right )}{2}+\frac {b \arctanh \left (c \sqrt {x}\right ) \ln \left (c \sqrt {x}-1\right )}{2}+\frac {b \arctanh \left (c \sqrt {x}\right ) \ln \left (1+c \sqrt {x}\right )}{2}\right )\) | \(344\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 330 vs.
\(2 (157) = 314\).
time = 0.41, size = 330, normalized size = 1.72 \begin {gather*} -{\left (\log \left (c \sqrt {x} + 1\right ) \log \left (-\frac {1}{2} \, c \sqrt {x} + \frac {1}{2}\right ) + {\rm Li}_2\left (\frac {1}{2} \, c \sqrt {x} + \frac {1}{2}\right )\right )} b c^{6} - {\left (\log \left (c \sqrt {x}\right ) \log \left (-c \sqrt {x} + 1\right ) + {\rm Li}_2\left (-c \sqrt {x} + 1\right )\right )} b c^{6} + {\left (\log \left (c \sqrt {x} + 1\right ) \log \left (-c \sqrt {x}\right ) + {\rm Li}_2\left (c \sqrt {x} + 1\right )\right )} b c^{6} + \frac {11}{12} \, b c^{6} \log \left (c \sqrt {x} + 1\right ) - \frac {11}{12} \, b c^{6} \log \left (c \sqrt {x} - 1\right ) - \frac {1}{6} \, {\left (6 \, c^{6} \log \left (c \sqrt {x} + 1\right ) + 6 \, c^{6} \log \left (c \sqrt {x} - 1\right ) - 6 \, c^{6} \log \left (x\right ) + \frac {6 \, c^{4} x^{2} + 3 \, c^{2} x + 2}{x^{3}}\right )} a - \frac {45 \, b c^{6} x^{3} \log \left (c \sqrt {x} + 1\right )^{2} - 45 \, b c^{6} x^{3} \log \left (-c \sqrt {x} + 1\right )^{2} + 330 \, b c^{5} x^{\frac {5}{2}} + 50 \, b c^{3} x^{\frac {3}{2}} + 12 \, b c \sqrt {x} + 15 \, {\left (6 \, b c^{4} x^{2} + 3 \, b c^{2} x + 2 \, b\right )} \log \left (c \sqrt {x} + 1\right ) - 15 \, {\left (6 \, b c^{6} x^{3} \log \left (c \sqrt {x} + 1\right ) + 6 \, b c^{4} x^{2} + 3 \, b c^{2} x + 2 \, b\right )} \log \left (-c \sqrt {x} + 1\right )}{180 \, x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \frac {a}{c^{2} x^{5} - x^{4}}\, dx - \int \frac {b \operatorname {atanh}{\left (c \sqrt {x} \right )}}{c^{2} x^{5} - x^{4}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} -\int \frac {a+b\,\mathrm {atanh}\left (c\,\sqrt {x}\right )}{x^4\,\left (c^2\,x-1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________